How to get data grouped by escalation policy

The goal - to get aggregated data grouped by Escalation policy

  1. How to group by escalation policy - if this end-point will be used
    https://api.pagerduty.com/analytics/metrics/incidents/all
  2. I see that on WEB UI for aggregated reporting the following API is used
    POST request
    https://mycompany.pagerduty.com/api/v1/reports/metrics
    is it possible to use it to get data? any documentation for it?
1 Like

You could pull them all by analytics/metrics/incidents/services and then you’d know the default escalation policy that’s associated with that service. If you pull them by analytics/metrics/incidents/ you would need to then lookup the escalation policy via the service id and aggregate from there.